package com.itkf.core.config;

import lombok.Data;

@Data
public class ConfigCenter {
    /**
     * 配置中心类型
     */
    private String type;
    /**
     * Nacos 专属配置
     */
    private Nacos nacos = new Nacos();

    /**
     * Redis 专属配置
     */
    private Redis redis = new Redis();

    @Data
    public static class Nacos {
        private String serverAddr;
        private String dataId;
        private String group;
        private String namespace;
    }

    @Data
    public static class Redis {
        private String host;
        private int port;
        private String password;
        private String channel; // 订阅发布的频道名
    }

}
